package com.diaohw.platform.remote.metadata;

import com.diaohw.platform.common.constant.ServiceConstant;
import com.diaohw.platform.framework.openfeign.GlobalFeignResultConfig;
import com.diaohw.platform.remote.metadata.obj.bo.DictionaryItemBO;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 数据字典查询
 */
@FeignClient(name = ServiceConstant.metadata, contextId = "DictionaryRemoteService", url = "${platform.openfeign.metadata:}", configuration = GlobalFeignResultConfig.class)
public interface DictionaryRemoteService {

    @GetMapping("/dictionary/batch")
    @Operation(summary = "依据ID集合查询")
    List<DictionaryItemBO> findById(List<String> ids);

    @GetMapping("/dictionary-item/batch")
    @Operation(summary = "依据ID集合查询")
    List<DictionaryItemBO> findByItemId(List<String> ids);

}
